package adv5;

import java.io.*;

import adv3.Sex;
import adv3.Student;
import java.util.ArrayList;

public class StudentXuliehua {

	public static void main(String[] args) {
		Student s = new Student("王二麻子", Sex.妖);
		try {
			ObjectOutputStream oout = new ObjectOutputStream(new FileOutputStream("E:/Temp/student.txt"));

			oout.writeObject(s);
			oout.close();
		} catch (Exception e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

}
